package com.bk.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author 27435
 * @Date 2024/11/1116:57
 * @Version 1.0
 */
@Data
@AllArgsConstructor
public class Book implements Serializable {
    private Integer id; // 编号
    private String name; // 名字
    private String author; // 作者
    private Float price; // 价格
    private Integer typeId; // 类型编号

    public Book(String name, String author, Float price, Integer typeId) {
        this.name = name;
        this.author = author;
        this.price = price;
        this.typeId = typeId;
    }

    public Book() {
    }
}
